﻿@model Bids.Web.Model.PublishModel
@{
    ViewBag.Title = "金额设置";
}
@section head{
    <script src="/js/jquery.validate.js"></script>
    <script type="text/javascript">
        $(function ()
        {
            $(":radio").click(function ()
            {
               
                    var keepfee = 88;
                    var costid = '#cost_' + $(":radio[name='SetMealId']:checked").val();
                    var imprestid = '#imprest_' + $(":radio[name='SetMealId']:checked").val();
                    var cost = parseInt($(costid).val());
                    var imprest = parseInt($(imprestid).val());
                    var keep = $(":radio[name='KeepSecret']:checked").val() == 'True';
                    if (keep) {
                        cost += 88;
                        imprest += 88;
                    }
                    $("#spanCost").text(cost);
                    $("#Cost").val(cost);
                    $("#Imprest").val(imprest);
                
            });
           
        });
        
    </script>
    }
<!--第四步-->
<div class="wz">
    <img src="/images/wz.png" alt="img" width="518" height="75" /></div>
<div class="create_left">
    <a href="#">商业信息</a>
    <a href="#">目标市场</a>
    <a href="#">标志设计风格</a>
    <a href="#" class="current">金额设置</a>
    <a href="#">确认资料</a>
    <a href="#">付款</a>

</div>

<div class="index">
    <div class="index_top">
        <b>金额设置</b>
    </div>
    <div class="index_center">
        <form id="myform" action="Step_5" method="post">
        <table width="900" border="1" cellpadding="0" align="center" cellspacing="0" bordercolor="#8c8c8c" style="border-collapse: collapse; font-family: '微软雅黑'; font-size: 16px;">
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">设计套餐</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35" style="color: #206ba3;">
                    <div align="center">@item.Name</div>
                </td>
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">价格（人民币）</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35" style="color: #c33e91;">
                    <div align="center">@(item.Cost)元</div>
                </td>
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">设计师（位）</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">@item.DesignerNum</div>
                </td>
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">稿件数（件）</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                   <td height="35">
                    <div align="center">@item.ManuscriptNum</div>
                </td> 
                }
                
                
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">预付款（人民币）</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">@(item.Imprest)元</div>
                </td>
                }
                
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">无限次修改</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.ModifyLimitless?"√":"×")
                    </div>
                </td>
                }
                
                
            </tr>
            
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">任何格式源文件</div>
                </td>
               @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.AnySourceFormat?"√":"×")
                    </div>
                </td>
                }
            </tr>
            
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">保证</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                   <td height="35">
                    <div align="center">
                        @item.DesignerNum<br />
                        @item.ManuscriptNum
                    </div>
                </td> 
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">付余款全額退款</div>
                </td>
                <td height="35">
                    <div align="center">低于保证数量</div>
                </td>
                <td height="35">
                    <div align="center">低于保证数量</div>
                </td>
                <td height="35">
                    <div align="center">低于保证数量</div>
                </td>
                <td height="35">
                    <div align="center">低于保证数量</div>
                </td>
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">不满意退款</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                   <td height="35">
                    <div align="center">@item.Refund</div>
                </td> 
                }
                
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">
                        满意后支付余款获得<br />
                        100%著作权及所有權
                    </div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.Copyright?"√":"×")
                    </div>
                </td>
                }
               
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">100%原创</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.Original?"√":"×")
                    </div>
                </td>
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">100%满意</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.Satisfaction?"√":"×")
                    </div>
                </td>
                }
            </tr>
            <tr>
                <td height="35" style="color: #206ba3;">
                    <div align="center">客户风险成本</div>
                </td>
                @foreach (var item in Model.SetMeals)
                {
                    <td height="35">
                    <div align="center">
                        @(item.RiskCost)元
                    </div>
                </td>
                }
            </tr>
        </table>
        <table width="900" border="0" cellpadding="0" align="center" cellspacing="0" bordercolor="#8c8c8c" style="border-collapse: collapse; font-family: '微软雅黑'; font-size: 16px; margin-top: 30px;">
            <tr>
                <td height="25"><span>
                    <label style="color: #f00;">* </label>
                    <b>选择适用设计套餐：<img src="/images/index_icon.jpg" alt="img" width="16" height="17" /></b></span>
                </td>
            </tr>

            <tr>
                <td height="31">
                     @foreach (var item in Model.SetMeals)
                     {
                        <label><input type="radio" name="SetMealId" value="@item.ID" class="required"/>
                         <input type="hidden" id="cost_@(item.ID)" value="@item.Cost" />
                         <input type="hidden" id="imprest_@(item.ID)" value="@item.Imprest" />
                         @(item.Name)</label>@:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   }
                </td>
            </tr>

            <tr>
                <td height="33"><span>
                    <label style="color: #f00;">* </label>
                    <b>是否保密：</b>(保密费用:88元)
                    <img src="/images/index_icon.jpg" alt="img" width="16" height="17" /></span>
                </td>
            </tr>

            <tr>
                <td height="24">
                    <label>
                        <input type="radio" name="KeepSecret" value="True" checked="checked">
                    是

                    </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label>
                        <input type="radio" name="KeepSecret" value="False">
                    否</label>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>

            <tr>
                <td height="33">设计金额合计:<span id="spanCost">0</span>
                    <input name="Cost" id="Cost" type="hidden" />
                    <input name="Imprest" id="Imprest" type="hidden" />&nbsp;&nbsp;元
                </td>
            </tr>


            <tr>
                <td height="80">
                    <input value=" " type="submit" class="green" />
                    <label style="color: #f00;">（带* 号的为必填选项）</label></td>
            </tr>

        </table>
        </form>
    </div>
    <div class="index_bottom"></div>
</div>

